package mybatis.interfaces.impl;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import mybatis.interfaces.IFilterOrQueryCondition;

import java.util.List;
import java.util.Map;


/**
 * @author CKC
 */
@NoArgsConstructor
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Data
public class FilterOrQueryCondition implements IFilterOrQueryCondition {

    private static final long serialVersionUID = -8627136931049967292L;

    @ApiModelProperty(name = "filterOr[?]", value = "等于，逻辑或连接，相同字段or，不同字段or，eg: filterOr[type]=user&filterOr[type]=userGroup&filterOr[name]=name1 表示 (type = 'userGroup' or type = 'user') or name = 'name1' ")
    @JsonIgnore
    private final transient String filterOrSwaggerView = null;
    protected Map<String, List<String>> filterOr;

}
